import Layout from '@/layout'
const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: 'noRedirect',
  name: 'system',
  meta: {
    title: 'system',
    icon: 'el-icon-setting',
    roles: [1, 2]
  },
  children: [
    {
      path: 'businessSystem',
      component: () => import('@/views/system/business'),
      name: 'businessSystem',
      meta: { title: '业务系统', noCache: true, roles: [1] }
    },
    {
      path: 'user',
      component: () => import('@/views/system/user'),
      name: 'user',
      meta: { title: '用户管理', noCache: true, roles: [1, 2] }
    },
    {
      path: 'role',
      component: () => import('@/views/system/role'),
      name: 'role',
      hidden: true,
      meta: { title: '角色管理', noCache: true, roles: [1, 2] }
    },
    {
      path: 'menu',
      component: () => import('@/views/system/menu'),
      name: 'menu',
      hidden: true,
      meta: { title: '菜单管理', noCache: true, roles: [1, 2] }
    }
  ]
}
export default systemRouter
